package com.cnboy.security.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cnboy.security.domain.ResponseResult;
import com.cnboy.security.domain.User;
import com.cnboy.security.service.listService;
import org.springframework.beans.factory.annotation.Autowired;
import com.cnboy.security.mapper.userMapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class listServiceImpl extends ServiceImpl<userMapper,User> implements listService {
    @Autowired
    private userMapper userMapper;

    @Override
    public ResponseResult userList() {
        List<User> users = userMapper.selectList(null);
        return new ResponseResult(200,"查询成功",users);
    }
}
